﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using System.Windows.Input;


namespace Chefbook.UserActions
{
    /// <summary>
    /// Contract for a user action
    /// </summary>
    public interface IUserAction : ICommand
    {
        /// <summary>
        /// Performs the action
        /// </summary>
        void DoAction();

        /// <summary>
        /// Reverts the action
        /// </summary>
        void UndoAction();

        /// <summary>
        /// Returns a user-friendly string describing the action
        /// </summary>
        /// <returns>A user-friendly string describing the action</returns>
        string ToString();

        /// <summary>
        /// Gets whether the action can be undone
        /// </summary>
        bool IsUndoable { get; }
    }
}
